<!doctype html>
<html>
<head>
<meta name="apple-mobile-web-app-capable" content="yes">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0">
<title></title>
<link href="../../css/newStyle.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="../../js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="../../js/common.js"></script>
<script type="text/javascript" src="../../js/gbRst.js"></script>
<script type="text/javascript" src="../../js/utils.js"></script>
<script type="text/javascript" src="../../js/openId.js"></script>
<script type="text/javascript" src="../../js/comContent.js"></script>
<script type="text/javascript" src="../../js/carService.js"></script>
<script type="text/javascript" src="../../js/doubleDate2.0.js"></script>
<script type="text/javascript" src="../../js/check.js"></script>
<script type="text/javascript" src="../../js/qmsk-1.1.js"></script>
<script type="text/javascript">
$(function(){
	var dutyId=getIdByName('dutyId');
	if(dutyId==70){
		$("#dutyName").html("销售顾问选择")
		document.title='销售顾问选择'
	}else if(dutyId==71){
		$("#dutyName").html("服务顾问选择")
		document.title='服务顾问选择'
	}else if(dutyId==81){
		$("#dutyName").html("保险顾问选择")
		document.title='保险顾问选择'
	}else if(dutyId==73){
		$("#dutyName").html("二手车评估顾问选择")
		document.title='二手车评估顾问选择'
}
	 new qmsk.SiglePinterest({
			url : '../../../user/find/userByDutyId', // 请求地址，插件会自动在 url 后追加 /n/n
			initPage : 3, // 首次加载页数
			size : 2, // 每次加载数量，即每页的大小
			success : printDataToPage, // 成功回调
			valves : 100 ,//当滚动条距离底部该像素的时候加载
			data:{'dutyId':dutyId}
		});
})

function printDataToPage(dt) {
	var htm="";
	for ( var i = 0; i < dt.row; i++) {
 		htm+="<dl onclick=\"gos('"+dt.getValue("ID",i)+"')\"><dt><img src=\""+dt.getValue("imageUrl",i)+"\"></dt><dd><p><span>姓名：</span>"+dt.getValue("Name",i)+"</p><p><span>职位：</span>"+dt.getValue("dutyName",i)+"</p></dd></dl>"
	}
	$("#allInfo").append(htm)

} 

function gos(id){
	var dutyid= getIdByName("dutyId");
	if(dutyid==70){//试驾预约 dutyId 为 试驾职位 Id /local 54  104 70
		window.location.href='tryDrive.html?id='+id+"&openId="+getOpenId()+"&shopId="+getShopId()
	}else if(dutyid==71){
		window.location.href='advisorDet.html?id='+id+"&openId="+getOpenId()+"&shopId="+getShopId()
	}else if(dutyid==81){
		window.location.href='safe.html?id='+id+"&openId="+getOpenId()+"&shopId="+getShopId()
	}else if(dutyid==73){
		window.location.href='reAssess.html?id='+id+"&openId="+getOpenId()+"&shopId="+getShopId()
	}
}
</script>
</head>

<body>
<div class="wrapper">
  <div class="container">
  <h2 class="xilie"><span id="dutyName">销售顾问选择</span></h2>
    <div class="hostImg">
        <div id='allInfo' >
        <!-- <dl onclick="redirectUrl('tryDrive.html')"><dt><img src="../../images/user.jpg"></dt><dd><p><span>姓名：</span>郭琴</p><p><span>职位：</span>销售顾问</p></dd></dl>
        <dl onclick="redirectUrl('advisorDet.html')"><dt><img src="../../images/user.jpg"></dt><dd><p><span>姓名：</span>郭琴</p><p><span>职位：</span>销售顾问</p></dd></dl>
        <dl onclick="redirectUrl('advisorDet.html')"><dt><img src="../../images/user.jpg"></dt><dd><p><span>姓名：</span>郭琴</p><p><span>职位：</span>销售顾问</p></dd></dl>
        <dl onclick="redirectUrl('advisorDet.html')"><dt><img src="../../images/user.jpg"></dt><dd><p><span>姓名：</span>郭琴</p><p><span>职位：</span>销售顾问</p></dd></dl>
       -->  </div> 
        <div class="fc"></div>
    </div>
  </div>
</div>
<a href="../mine/applyFor.html?shopId=280000022">dd</a>
</body>
</html>
